package com.zhongde.cloud89app.activity;

import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityOptionsCompat;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.widget.ImageView;

import com.zhongde.cloud89app.R;

public class FroundActivity extends AppCompatActivity {

    Handler mHandler = new Handler();
    ImageView froundImage;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fround);
        froundImage = findViewById(R.id.titleimage);
        mHandler.postDelayed(new Runnable() {
            @Override
            public void run() {
                Intent intent = new Intent(FroundActivity.this, LoginActivity.class);
                startActivity(intent, ActivityOptionsCompat.makeSceneTransitionAnimation(FroundActivity.this, froundImage, "zhongde_image").toBundle());
            }
        }, 1000);
    }

    @Override
    protected void onStop() {
        super.onStop();
        finish();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }
}